package com.mjk.common.web.getway.restful.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 拦截器 先于interceptoter
 * @author mjk
 *
 */
@Configuration
public class WebFilterConfig{	
	 
	@Bean
	public FilterRegistrationBean requestFilterRegistration() {
		FilterRegistrationBean registration = new FilterRegistrationBean(new RequestFilter());
		registration.addUrlPatterns("/ld/*"); 		
		registration.setName("requestFilter");
		registration.setOrder(1);
		return registration;
	}

	
}
